import unittest
from case1 import TestDemo1
from case2 import TestDemo2

# 实例化测试套件
suit = unittest.TestSuite()
# 添加测试用例(类名("方法名"))
suit.addTest(TestDemo1("test_methods1"))
suit.addTest(TestDemo1("test_methods2"))
suit.addTest(TestDemo2("test_methods1"))
suit.addTest(TestDemo2("test_methods2"))
# 实例化运行实例
runner = unittest.TextTestRunner()
# 执行测试套件
runner.run(suit)
